import {
    wyv3get,
    wyv3put,
    wyv3post,
    wyv3del
} from '../axios.js'

export default {
    // 获取成绩统计
    getStore: data => {
        return wyv3get('/score', data)
    },
    // 修改专业
    putUpdateZy: data => {
        console.log(data);
        return wyv3put('/zy', data)
    },
    //修改班级
    putUpdateBj: data => {
        console.log(data);
        return wyv3put('/class', data)
    },
    //升学状态查询
    getHighterSchoolStatus: data => {
        console.log(data);
        return wyv3get('/shengxue', data)
    },
    //升学
    postHighterSchool: data => {
        return wyv3put('/shengxue', data)
    },
    // 导入已有学生
    exportClass: data => {
        return wyv3get('/class/copyClassStuList', data)
    },
    /* 运营管理员 start*/
    // 查询课程
    getCmoCousList: data => {
        return wyv3get('/cous/yunyingCousList', data)
    },
    //添加到公共课程
    publicCourseCmo: data => {
        return wyv3post('/cous/public', data)
    },
    //删除公共课程
    deletePublicCourseById: data => {
        console.log(data);
        return wyv3del('/cous/public', data)
    },
    //查询实践
    getCmoPracticeList: data => {
        return wyv3get('/ldsj/yunyingLdsjList', data)
    },
    //添加到公共实践
    publicPractiseCmo: data => {
        return wyv3post('/ldsj/public', data)
    },
    deletePublicPractiseById: data => {
        console.log(data);
        return wyv3del('/ldsj/public', data)
    },
    //获取字典值一级信息
    getDictList: data => {
        return wyv3get('/sys/setting/getListByCode', data)
    },
    //获取二级信息
    getDictByVal: data => {
        return wyv3get('/sys/setting/getListByVal', data)
    },
    /* 运营管理员 end*/
    /* 管理员*/
    //管理员获取实践列表
    getAdminPracticeList: data => {
        return wyv3get('/ldsj/ldsjList', data)
    },
    //获取code
    getCode: data => {
        return wyv3get('/user/auth')
    },
    // 等保日志
    logingLog: data => {
        return wyv3get('/sys/login/log', data)
    },

};
